package com.spboot.app.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jntoo.db.DB;
import java.io.Serializable;
import java.util.*;

@TableName("qicai")
public class Qicai implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String bianhao;

    private Integer fenlei;

    private String mingcheng;

    private String tupian;

    private Integer kucun;

    private Double goujia;

    private Double zujia;

    private String shiyongfangfa;

    private String shoufeibiaozhun;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getZuyongCount() {
        return DB.name("zuyong").where("qicaiid", id).count();
    }

    public String getBianhao() {
        return bianhao;
    }

    public void setBianhao(String bianhao) {
        this.bianhao = bianhao == null ? "" : bianhao.trim();
    }

    public Integer getFenlei() {
        return fenlei;
    }

    public void setFenlei(Integer fenlei) {
        this.fenlei = fenlei == null ? 0 : fenlei;
    }

    public String getMingcheng() {
        return mingcheng;
    }

    public void setMingcheng(String mingcheng) {
        this.mingcheng = mingcheng == null ? "" : mingcheng.trim();
    }

    public String getTupian() {
        return tupian;
    }

    public void setTupian(String tupian) {
        this.tupian = tupian == null ? "" : tupian.trim();
    }

    public Integer getKucun() {
        return kucun;
    }

    public void setKucun(Integer kucun) {
        this.kucun = kucun == null ? 0 : kucun;
    }

    public Double getGoujia() {
        return goujia;
    }

    public void setGoujia(Double goujia) {
        this.goujia = goujia == null ? 0.0f : goujia;
    }

    public Double getZujia() {
        return zujia;
    }

    public void setZujia(Double zujia) {
        this.zujia = zujia == null ? 0.0f : zujia;
    }

    public String getShiyongfangfa() {
        return shiyongfangfa;
    }

    public void setShiyongfangfa(String shiyongfangfa) {
        this.shiyongfangfa = shiyongfangfa == null ? "" : shiyongfangfa.trim();
    }

    public String getShoufeibiaozhun() {
        return shoufeibiaozhun;
    }

    public void setShoufeibiaozhun(String shoufeibiaozhun) {
        this.shoufeibiaozhun = shoufeibiaozhun == null ? "" : shoufeibiaozhun.trim();
    }
}
